.class Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;
.super Lcom/glympse/platform/GRunnable;
.source "FacebookWrapper.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->onComplete(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;


# direct methods
.method constructor <init>(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    .line 163
    invoke-direct {p0}, Lcom/glympse/platform/GRunnable;-><init>()V

    return-void
.end method


# virtual methods
.method public Run()V
    .locals 4

    .prologue
    .line 168
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "Saving Facebook token: "

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    invoke-static {v1}, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v1

    invoke-static {v1}, Lcom/glympse/android/glympseservice/FacebookWrapper;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper;)Lcom/facebook/android/Facebook;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/android/Facebook;->getAccessToken()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ", "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v1, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    invoke-static {v1}, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v1

    invoke-static {v1}, Lcom/glympse/android/glympseservice/FacebookWrapper;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper;)Lcom/facebook/android/Facebook;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/android/Facebook;->getAccessExpires()J

    move-result-wide v1

    invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/platform/common/Helpers;->Log(Ljava/lang/String;)V

    .line 169
    invoke-static {}, Lcom/glympse/platform/Platform;->instance()Lcom/glympse/platform/Platform;

    move-result-object v0

    iget-object v0, v0, Lcom/glympse/platform/Platform;->m_oConfig:Lcom/glympse/platform/Config;

    iget-object v1, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    invoke-static {v1}, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v1

    invoke-static {v1}, Lcom/glympse/android/glympseservice/FacebookWrapper;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper;)Lcom/facebook/android/Facebook;

    move-result-object v1

    invoke-virtual {v1}, Lcom/facebook/android/Facebook;->getAccessToken()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    invoke-static {v2}, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v2

    invoke-static {v2}, Lcom/glympse/android/glympseservice/FacebookWrapper;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper;)Lcom/facebook/android/Facebook;

    move-result-object v2

    invoke-virtual {v2}, Lcom/facebook/android/Facebook;->getAccessExpires()J

    move-result-wide v2

    invoke-virtual {v0, v1, v2, v3}, Lcom/glympse/platform/Config;->SetFacebookToken(Ljava/lang/String;J)V

    .line 172
    iget-object v0, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    invoke-static {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper;->access$1(Lcom/glympse/android/glympseservice/FacebookWrapper;)V

    .line 175
    iget-object v0, p0, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener$2;->this$1:Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;

    invoke-static {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;->access$0(Lcom/glympse/android/glympseservice/FacebookWrapper$LoginDialogListener;)Lcom/glympse/android/glympseservice/FacebookWrapper;

    move-result-object v0

    invoke-static {v0}, Lcom/glympse/android/glympseservice/FacebookWrapper;->access$2(Lcom/glympse/android/glympseservice/FacebookWrapper;)V

    .line 176
    return-void
.end method
